#pragma once
#include "Material.h"
class RObject{
	friend class Renderer;
protected:
	shared_ptr<Material> mat;
	GLfloat* vertices;
	GLenum primitive_type;
	GLuint primitive_count;
	GLuint capacity;
public:
	RObject(const GLuint& capacity, shared_ptr<Material> mat, const GLenum& primitive_type);
	virtual ~RObject();

	void initialize();
	void render();
};
